﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPMS.Log.Core
{
    /// <summary>
    /// 同步上下文接口
    /// </summary>
    /// <remarks>用于提供同步控制</remarks>
    /// <history>
    /// [zanezeng]               2010/1/14 9:03    创建
    /// </history>
    public interface ISynchronizationContext
    {
        /// <summary>
        /// 根据给定的状态对象创建同步区域
        /// </summary>
        /// <param name="state">用于创建同步区域的状态对象</param>
        /// <returns>同步区域凭证。调用同步区域凭证的Dispose方法，则释放同步区域。</returns>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2010/1/14 9:05    创建
        /// </history>
        IDisposable Synchronize( object state );
    }
}
